#include "AMFBody.h"
//#include <wx/log.h>

namespace AMF {

AMFBody::AMFBody()
{
    //ctor
//    wxLogMessage(_("建立AMFBody"));
}

AMFBody::~AMFBody()
{
    //dtor
//    wxLogMessage(_("釋放AMFBody"));
    delete _content;
}

wxString AMFBody::toString(bool writeType)
{
    wxString tmp ;
    tmp += _("Response:") + _response + _("\r\n");
    tmp += _("Target:") + _target + _("\r\n");
    tmp += _("Content:\r\n");
    tmp += writeType?_content->ToTypeString():_content->ToString();
    tmp += _("\r\n");
    return tmp;

}

} // namespace AMF
